package test_3_7;

public class five {
    public static void main(String[] args) {
        int a=10;
        int b=3;
        int c=11;
        int sum1=max(a,b);
        int sum2=max(a,b,c);
        System.out.println(sum1);
        System.out.println(sum2);

    }
    public static int max(int a,int b)
    {
        return (a>b?a:b);
    }
    public static int max(int a,int b,int c)
    {
        return ((a>b?a:b)<c?c:(a>b?a:b));
    }
}
